from flask import Blueprint
import time

test_blueprint = Blueprint('test', __name__)


@test_blueprint.route('/sleep/<sec>')
def sleep_sec(sec):
    time.sleep(int(sec))
    return f'sleep {sec}s finish'
